package com.huosu.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @program: miner-shield-web-v2
 * @description:
 * @author: changlin
 * @create: 2019-12-12 13:23
 **/

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("m_network")
@ApiModel(value = "网络配置对象", description = "网络配置表")
public class Net extends Model<Net> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "网络模式")
    private Integer dhcp4;

    @ApiModelProperty(value = "IP地址")
    private String ipAddress;

    @ApiModelProperty(value = "子网掩码")
    private String subnetMask;

    @ApiModelProperty(value = "网关")
    private String gateway;

    @ApiModelProperty(value = "DNS地址")
    private String dns;

//    @ApiModelProperty(value = "修改时间")
//    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
//    @TableField(value = "update_Time", fill = FieldFill.INSERT_UPDATE)
//    private String updateTime;

}
